#pragma once
#include<iostream>
#include<vector>
#include<string>
#include<map>
#define MAXL 100000
using namespace std;
class myUnionSetInt {
	int father[MAXL];
	int capcity;
public:
	myUnionSetInt(int capcity = 100);
	myUnionSetInt(int nums[], int n);
	myUnionSetInt(vector<int> nums);
	int findFar(int child);
	void toUnoin(int ch1, int ch2);
	bool inSameSet(int ch1, int ch2);
};